package javaDemo11.多线程;
public class Main {
    public static void main(String[] args){
        BOX box = new BOX();

        Producer p = new Producer(box);
        Customer c = new Customer(box);

        Thread t1 = new Thread(p);
        Thread t2 = new Thread(c);

        t1.start();
        t2.start();
    }
}